//
//  LBActionSheet.h
//  app
//
//  Created by LINAICAI on 16/8/23.
//  Copyright © 2016年 广东联结电子商务有限公司. All rights reserved.
//

#import <UIKit/UIKit.h>
@interface LBActionSheet : NSObject
/**
 *  工厂方法，原生控件block封装
 *
 *  @param view                   弹出视图
 *  @param title                  标题
 *  @param cancelButtonTitle      取消按钮
 *  @param destructiveButtonTitle 红色按钮
 *  @param otherButtonTitles      普通蓝色按钮
 *  @param complete               dismiss或者点击按钮的回调
 */
+ (void)showWithView:(__kindof UIView *)view
               block:(void(^)(NSInteger))block
               title:(NSString *)title
   cancelButtonTitle:(NSString *)cancelButtonTitle
destructiveButtonTitle:(NSString *)destructiveButtonTitle
   otherButtonTitles:(NSString *)otherButtonTitles, ...;
/**
 *  工厂方法，弹出图片选择ActionSheet
 *
 *  @param view       弹出视图
 *  @param info       选择的图片描述
 *  @param completion 回调
 */
+ (void)showImagePickerInView:(__kindof UIView *)view
                   completion:(void(^)(NSDictionary<NSString *,id> *))completion;


//屏幕横竖屏的图片转换
+ (UIImage *)fixOrientation:(UIImage *)aImage;
@end
